﻿using System;

namespace Program12
{
    public enum Gender
    {
        男,
        女
    }
    //结构体。
    public struct Person
    {
        public string Name;  //字段
        public Gender gender;
        public int Age;
    }
    class Program
    {
        static void Main(string[] args)
        {
            Person peson1;
            peson1.Name = "张学友";
            peson1.gender = Gender.男;
            peson1.Age = 60;

            Person peson2;
            peson2.Name = "张学友他妹的女";
            peson2.gender = Gender.女;
            peson2.Age = 20;

            Console.WriteLine("姓名：{0} 性别：{1} 年龄：{2}", peson1.Name, peson1.gender, peson1.Age);
            Console.WriteLine("姓名：{0} 性别：{1} 年龄：{2}", peson2.Name, peson2.gender, peson2.Age);



            
        }
    }
}
